/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.swt.mto.thithu.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    tuan.nguyen
 * @generated
 */
public class LoadAjaxSoap implements Serializable {
	public static LoadAjaxSoap toSoapModel(LoadAjax model) {
		LoadAjaxSoap soapModel = new LoadAjaxSoap();

		soapModel.setLoadAjaxId(model.getLoadAjaxId());
		soapModel.setLoadWeb(model.getLoadWeb());
		soapModel.setAjax(model.getAjax());

		return soapModel;
	}

	public static LoadAjaxSoap[] toSoapModels(LoadAjax[] models) {
		LoadAjaxSoap[] soapModels = new LoadAjaxSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static LoadAjaxSoap[][] toSoapModels(LoadAjax[][] models) {
		LoadAjaxSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new LoadAjaxSoap[models.length][models[0].length];
		}
		else {
			soapModels = new LoadAjaxSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static LoadAjaxSoap[] toSoapModels(List<LoadAjax> models) {
		List<LoadAjaxSoap> soapModels = new ArrayList<LoadAjaxSoap>(models.size());

		for (LoadAjax model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new LoadAjaxSoap[soapModels.size()]);
	}

	public LoadAjaxSoap() {
	}

	public long getPrimaryKey() {
		return _loadAjaxId;
	}

	public void setPrimaryKey(long pk) {
		setLoadAjaxId(pk);
	}

	public long getLoadAjaxId() {
		return _loadAjaxId;
	}

	public void setLoadAjaxId(long loadAjaxId) {
		_loadAjaxId = loadAjaxId;
	}

	public String getLoadWeb() {
		return _loadWeb;
	}

	public void setLoadWeb(String loadWeb) {
		_loadWeb = loadWeb;
	}

	public String getAjax() {
		return _ajax;
	}

	public void setAjax(String ajax) {
		_ajax = ajax;
	}

	private long _loadAjaxId;
	private String _loadWeb;
	private String _ajax;
}